package com.example.todolist.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.example.todolist.common.AbstractDO;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author admin
 * @since 2022-02-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="Plan对象", description="")
public class Plan extends AbstractDO {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户id")
    private String uid;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "规划状态")
    private String status;

    @ApiModelProperty(value = "规划开始日期")
    private String planStartDate;

    @ApiModelProperty(value = "规划开始时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private LocalDateTime planStartTime;

    @ApiModelProperty(value = "规划结束时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm",timezone = "GMT+8")
    private LocalDateTime planEndTime;


    @ApiModelProperty(value = "事项类别")
    private String  planType;


}
